<template>
  <edit-form
    :formConfig="formConfig"
    ref="editForm"
    :formData="editFormData"
    @handlePlan="handlePlan"
  ></edit-form>
</template>

<script>
export default {
  data() {
    return {
      formConfig: {
        labelWidth: "140px",
        itemArr: [
          {
            label: "父级组织",
            prop: "parentName",
            type: "text",
            disabled: true,
            required: true,
          },
          {
            label: "组织名称",
            prop: "name",
            type: "text",
            required: true,
          },
          {
            label: "组织编码",
            prop: "code",
            type: "text",
            required: true,
          },
          {
            label: "组织级别",
            prop: "level",
            type: "select",
            required: true,
          },
          {
            label: "组织类型",
            prop: "type",
            type: "select",
            required: false,
          },
          {
            label: "是否外单位",
            prop: "isForegin",
            type: "select",
            required: false,
          },
          {
            label: "排序号",
            prop: "rowIndex",
            type: "text",
            required: false,
          }
        ],
      },
      editFormData: {},
    };
  },
  methods:{
      handlePlan(obj){

      }
  }
};
</script>

<style>
</style>